package com.cloud.shopping.goods.feign;

import com.cloud.shopping.goods.model.Product;
import com.cloud.shopping.tool.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author John.Zhang
 * @version Id: SpuFeign, v 0.1 2021/1/3 12:48 ZhiYong Exp $
 */
@FeignClient(value = "shopping-goods")
public interface SpuFeign {

    /**
     * 查询产品详情信息
     * @param id id
     * @return RespResult
     */
    @GetMapping(value = "/spu/product/{id}")
    RespResult<Product> one(@PathVariable(value = "id")String id);

}
